<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title>Spring Security SSO</title>
  <link rel="stylesheet"
        href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"/>
</head>

<body>
<div class="container">
  <div class="col-sm-12">
    <h1>Secured Page</h1>
    Welcome, <span th:text="${#authentication.name}">Name</span>
    <br/>
    Your authorities are <span th:text="${#authentication}">authorities</span>
    <div style="margin-top: 30px">
      <a class="btn btn-primary" href="http://localhost:8083/ui2/securedPage">Go to UI2</a>
    </div>
  </div>
</div>
</body>
</html>